#ifndef FILES_LIST_HPP
#define FILES_LIST_HPP

#include <QList>
#include <QFileInfo>
#include <QString>
#include <QDateTime>
#include <QThread>
#include <QSemaphore>
#include <QMutex>

class FilesList:public QList<QFileInfo *>,public QThread{
	public:
		FilesList(const FilesList&);
		FilesList(QString,QDateTime,QDateTime,qint64,qint64,QMutex *,QSemaphore *,QObject*);
		~FilesList();
		void run();
		void stop();
	private:
		void makeList();
		QString root;
		QDateTime minDate;
		QDateTime maxDate;
		qint64 minSize;
		qint64 maxSize;
		QMutex *mut_fl;
		QSemaphore *sem;
		bool terminated;
};

#endif

